]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
telepathyClient: Use protocol-specific policy
authorFlorian Müllner <fmuellner@gnome.org>
Sun, 26 Jul 2015 15:33:05 +0000 (17:33 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 5 Aug 2015 15:22:10 +0000 (17:22 +0200)
Since commit 79c04c93e4cb2, we launch Polari instead of Empathy when
activating a chat notification for an IRC channel. It therefore makes
sense to follow Polari's notification policy for those notifications
rather than Empathy's.

https://bugzilla.gnome.org/show_bug.cgi?id=752881

js/ui/components/telepathyClient.js

index 3aa06e7b875fa7958a0ed1fa4257507eee91ce62..f571319757e51fe4dd681ffdc8f6aac9ef3ec23c 100644 (file)
@@ -303,6 +303,8 @@ const ChatSource = new Lang.Class({
     },
 
     _createPolicy: function() {
+        if (this._account.protocol_name == 'irc')
+            return new MessageTray.NotificationApplicationPolicy('org.gnome.Polari');
         return new MessageTray.NotificationApplicationPolicy('empathy');
     },